package com.huike.clues.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 线索
 * </p>
 *
 * @author author
 * @since 2023-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_clue")
@ApiModel(value="Clue对象", description="线索")
public class Clue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "线索id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "客户姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "渠道")
    private String channel;

    @ApiModelProperty(value = "活动id")
    private Long activityId;

    @ApiModelProperty(value = "1 男 0 女")
    private String sex;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "微信")
    private String weixin;

    @ApiModelProperty(value = "qq")
    private String qq;

    @ApiModelProperty(value = "意向等级")
    private String level;

    @ApiModelProperty(value = "意向学科")
    private String subject;

    @ApiModelProperty(value = "状态(已分配1  进行中2  回收3  伪线索4)")
    private String status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "伪线索失败次数(最大数3次)")
    private Integer falseCount;

    private LocalDateTime nextTime;

    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否转派")
    private String transfer;

    @ApiModelProperty(value = "线索失效时间")
    private LocalDateTime endTime;


}
